for i in 1...12 {
    moveForward()
    if isOnClosedSwitch {
        toggleSwitch()
        
    }else if isOnGem {
        collectGem()
    }
    
    
}